package com.mobileares.midp.widgets.client.common;

import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Node;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.ComplexPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2011-3-24
 * Time: 15:13:46
 * To change this template use File | Settings | File Templates.
 */
public class LI extends ComplexPanel{
    public LI() {
        setElement(Document.get().createLIElement());
    }

    public void add(Widget w) {
        add(w, getElement());
    }

    public void insert(Widget w, int beforeIndex) {
        insert(w, getElement(), beforeIndex, true);
    }


}
